<template>
	<view class="con">
		<view v-html="info"></view>
	</view>
</template>
<script>
	import {xieyi,zucexy} from "../../api/user.js"
	export default {
		components: {},
		data() {
			return {
				info:null
			};
		},
		// 
		onLoad(e) {
			if(e.type==0){
				this.getinfo()
			}else{
				this.getInfo()
			}
			
		},
		onShow() {},

		//下拉刷新
		onPullDownRefresh() {},
		methods: {
			async getinfo(){
				let res=await this.get(xieyi)
				this.info=res.data.detail
			},
			async getInfo(){
				let res=await this.get(zucexy)
				this.info=res.data.detail
			}
			
		}
	}
</script>
<style scoped>
 .con{
	 padding: 20rpx 30rpx;
 }
</style>
